﻿using System;
using System.Collections;
namespace MyProFile_V2.Model
{
    public class TableModel
    {
        /// <summary>
        /// 表名
        /// </summary>
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        /// <summary>
        /// 表的id
        /// </summary>
        private string id;

        public string Id
        {
            get { return id; }
            set { id = value; }
        }
        /// <summary>
        /// 该表的所有列
        /// </summary>
        private ArrayList columns;

        public ArrayList Columns
        {
            get { return columns; }
            set { columns = value; }
        }
        private bool isView;

        public bool IsView
        {
            get { return isView; }
            set { isView = value; }
        }
        /// <summary>
        /// 添加列
        /// </summary>
        /// <param name="colum"></param>
        public void AddColumns(ColumnsModel colum)
        {
            columns.Add(colum);
        }

        /// <summary>
        /// 表的描述
        /// </summary>
        private string tabDes = "该属性暂无描述";

        public string TabDes
        {
            get { return tabDes; }
            set { tabDes = value; }
        }


    }
}
